using System;
using System.Windows.Controls;
using WindowsPhoneMVC.ActionResults;
using WindowsPhoneMVC.Navigation;
using WindowsPhoneMVC.Navigation.Interfaces;
using WindowsPhoneMVC.Phone.Interfaces;
using WindowsPhoneMVC.Tests.Navigation.Fakes;

namespace WindowsPhoneMVC.Tests.ActionResults.Fakes
{
    public class FakeViewResult : ViewResult
    {
        public FakeViewResult(INavigator navigator) : base(null, null, new FakeNavigationContext(navigator, new NavigationRequest()))
        {
        }

        protected override void ExecuteInternal()
        {
            Executed = true;
        }

        public override void Dispose()
        {
            Disposed = true;
        }

        public bool Disposed { get; set; }

        public bool Executed { get; private set; }

        protected override void RenderView(IMvcFrame navigationFrame, UserControl view)
        {
            
        }
    }
}